package com.duanyu.mysecurity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.duanyu.mysecurity.domain.Permission;
import com.duanyu.mysecurity.domain.Users;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UsersMapper extends BaseMapper<Users> {

    //根据用户名查询权限
    List<Permission> findPermission(String username);

}
